//
//  TLPlayerRecordVC.m
//  FunnyVideo
//
//  Created by 李鑫 on 15/11/2.
//  Copyright © 2015年 NewEggTech. All rights reserved.
//

#import "TLPlayerRecordVC.h"
#import "AVOSManger.h"
@interface TLPlayerRecordVC ()

@end

@implementation TLPlayerRecordVC

- (void)viewDidLoad {
    [super viewDidLoad];
    
    // Do any additional setup after loading the view.
    self.title = Nav_Img_Record;
    self.refreshControl = nil;
    isCategorySwOn = NO;
}

- (void)viewDidAppear:(BOOL)animated{
    [super viewDidAppear:animated];
    
}

- (void)loadMoreVideoWithVideoType:(AVOSVideoType)videoType{
    NSString *recordArrayPath = [[NSBundle mainBundle] pathForResource:@"PlayerRecord" ofType:@"plist"];
    
    [[AVOSManger sharedManger] updateLocalVideoList:3 localPlistPath:recordArrayPath completion:^(NSArray *v_urls, NSArray *v_names, NSArray *pub_user, NSArray *v_ctimes, NSArray *v_descs, NSArray *likes, NSArray *indexs, NSArray *v_ids,NSArray *v_cate,NSArray *video_Cmt_Count, NSUInteger videoCount) {
        
        videoUrls = v_urls;
        videoNames = v_names;
        videoCTimes = v_ctimes;
        videoDescs = v_descs;
        videoId = v_ids;
        videoCate = v_cate;
        videoCmtCount = video_Cmt_Count;
        
        curVideoCount = videoCount;
        [self.tableView reloadData];
        
        dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(1 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
            [loadControl stop];
        });
    }];
}

- (void)loadRecord{
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
